<?php

/**
 * This is the model class for table "ld_ketquaxoso".
 *
 * The followings are the available columns in table 'ld_ketquaxoso':
 * @property integer $serialno
 * @property string $date
 * @property string $x80
 * @property string $x8
 * @property string $x3dot5
 * @property datetime $last_update
 */
class Ketquaxoso extends BaseActiveRecord
{

    /**
     * Returns the static model of the specified AR class.
     * @return Ketquaxoso the static model class
     */
    public static function model($className=__CLASS__)
    {
        return parent::model($className);
    }

    /**
     * @return string the associated database table name
     */
    public function tableName()
    {
        return 'ld_ketquaxoso';
    }

    public static function layKetQuaXoSoHomNay()
    {
        $today = date('Y-m-d');
        return Ketquaxoso::model()->find('date = :date', array(':date'=>$today));
    }

}